package com.sxfq.loansupermarket.backsystem.modular.theTest.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.sxfq.loansupermarket.backsystem.common.node.ZTreeNode;
import com.sxfq.loansupermarket.backsystem.modular.theTest.entity.TheTestInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 考試dao
 *
 * @author py
 * @Date 2018年2月4日23:05:54
 */
public interface TheTestDao extends BaseMapper<TheTestInfo> {
    List<TheTestInfo> getQueryPage(@Param("page") Page<TheTestInfo> page, Map<String, Object> params);

    int selectSameTestNameCount(@Param("theTestName") String theTestName);

    int selectSameTestNameCountForUpdate(@Param("id") String id, @Param("theTestName") String theTestName);

    int selectTestStatusCount(@Param("theTestId") String theTestId, @Param("userId") int userId);
}
